<%- include nav_header%>
		<div class="register" style="padding-bottom:60px; padding-top:30px;height:auto; background:url(/images/10.jpg)">
			<div class="container" style="margin-top: 90px; text-align: center;">

				<div class="col-lg-5 col-sm-5 col-md-5 col-xs-7" style=" border-radius:10px;background: rgba(225,225,225,0.7); height: auto; margin-left: 25%; padding-bottom: 20px;">
					<h3 style="margin-bottom: 20px; color: #16a085;">欢迎来到驴友之家</h3>
					<h4 style="margin-bottom: 20px; ">注册您的账户</h4>
                  
                  <%if(error){%>
                   	<h5 style="color: red;"> <%=error%></h5>
                   	<%}%> 
                   	
				<div>
					<form class="bs-example bs-example-form" role="form" method="post" action="/doregister" onsubmit="false">
						<div class="input-group" style="margin-bottom: 20px; margin-left: 15%;">
							<span class="input-group-addon"><span class="glyphicon glyphicon-user" ></span></span>
							<input type="text" id="username" name="name" class="form-control" placeholder="用户名" style="width: 80%;">
						</div>
						<div class="input-group" style="margin-bottom: 20px; margin-left: 15%;">
							<span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
							<input  type="password"  id="password" name="password" class="form-control" placeholder="密码" style="width: 80%;">
						</div>
						<div class="input-group" style="margin-bottom: 20px; margin-left: 15%;">
							<span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
							<input  type="password"  id="password1" name="password1" class="form-control" placeholder="再次确认密码" style="width: 80%;">
						</div>
						<div class="input-group" style="margin-bottom: 20px; margin-left: 15%;">
							<span class="input-group-addon"><span class="glyphicon glyphicon-earphone"></span></span>
							<input type="text" class="form-control" name="telephone" placeholder="手机号码" style="width: 80%;">
						</div>
						<div class="input-group" style="margin-bottom: 20px; margin-left: 15%;">
							<span class="input-group-addon"><span class="glyphicon glyphicon-envelope"></span></span>
							<input type="text" class="form-control" name="email" placeholder="邮箱" style="width: 80%;">
						</div>
						
						
						
						
						<button type="submit" id="register" name="register" class="btn btn-success" style="width: 70%; margin-bottom:20px ;">注册</button><br />
						<span>
							<!--<a href="" style="margin-right: 20%;">忘记密码？</a>-->
							<a href="/login">已有账号？去登陆</a>
						</span>
                        </form>

                </div>

				</div>
			</div>
		</div>
	
       <!-- <script type="text/javascript" src="/javascripts/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="/javascripts/bootstrap.js"></script>-->
<!--    <script type="text/javascript">
     /*   $(function(){

            $("#register").click(function(){
                var username = $("#username").val();
                var password = $("#password").val();
                var password1 = $("#password1").val();
                if(password !== password1){
                    $("#password").css("border","1px solid red");
                    $("#password1").css("border","1px solid red");
                }else if(password === password1){
                    var data = {"uname":username,"upwd":password};
                    $.ajax({
                        url: '/register',
                        type: 'post',
                        data: data,
                        success: function(data,status){
                            if(status == 'success'){
                                location.href = 'login';
                            }
                        },
                        error: function(data,err){
                            location.href = 'register';
                        }
                    });
                }
            });
        });*/
    </script>-->
    
<%- include footer%>